From 9b3a59c10d91a57975661686dbc08278b78ae1de Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Thu, 26 Jan 2017 16:18:10 +0000 Subject: [PATCH] x86/dmar: place the initdata annotation after the variable type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit clang cannot cope with the annotation being in the middle of the variable declaration. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Reviewed-by: Jan Beulich --- xen/drivers/passthrough/vtd/dmar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/vtd/dmar.c b/xen/drivers/passthrough/vtd/dmar.c index 831fe1a33e..4a6a819dbd 100644 --- a/xen/drivers/passthrough/vtd/dmar.c +++ b/xen/drivers/passthrough/vtd/dmar.c @@ -871,8 +871,8 @@ struct user_rmrr { u32 sbdf[MAX_USER_RMRR_DEV]; }; -static __initdata unsigned int nr_rmrr; -static struct __initdata user_rmrr user_rmrrs[MAX_USER_RMRR]; +static unsigned int __initdata nr_rmrr; +static struct user_rmrr __initdata user_rmrrs[MAX_USER_RMRR]; /* Macro for RMRR inclusive range formatting. */ #define ERMRRU_FMT "[%lx-%lx]" -- 2.30.2